package com.goodmr.passport.device;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 安全认证标识
 *
 * @author <a href="mailto:bingdong13@msn.com">bigo</a>
 */
@Getter
@AllArgsConstructor
public enum SecureEnum {

    NO(0, "未认证"),
    YES(1, "已认证");

    private int value;

    private String desc;

    public static SecureEnum get(int value) {

        for (SecureEnum enumValue : SecureEnum.values()) {
            if (enumValue.getValue() == value) {
                return enumValue;
            }
        }

        return SecureEnum.NO;
    }
}
